package exam_practice;

public class Rectangle extends Shape implements Region {
	private int length;
	private int width;

	public Rectangle (int l, int w, Point c)
	{
		super (c);
		length = l;
		width = w;
	}

	public int area() {
		System.out.print("Rectangle area: ");
		return length * width;
	}

	public int perimeter() {
		System.out.print("Rectangle perimeter: ");
		return 2 * (length + width);
	}
}
